<%@ page import="Impl.BoardDaoImpl" %>
<%@ page import="dao.IBoardDao" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/4/2
  Time: 20:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    request.setCharacterEncoding("UTF-8");
    response.setCharacterEncoding("UTF-8");

    int bid= Integer.parseInt(request.getParameter("boardId"));
    IBoardDao ibo=new BoardDaoImpl();
        int b=ibo.delBoard(bid);
        if (b>0){
            request.getRequestDispatcher("updel_zhut.jsp").forward(request,response);
        }else {
            out.print("<script>alter('删除失败');</script>");
        }
%>
</body>
</html>
